#!/bin/bash

WORKSPACE=$(cd $(dirname $0)/; pwd)
cd $WORKSPACE

function build() {
    go clean
    GOOS=linux GOARCH=amd64 go build
    mv gm gm_linux
    GOOS=windows GOARCH=amd64 go build
    GOOS=darwin GOARCH=amd64 go build
    mv gm gm_mac
}

function help() {
    echo "$0 build"
}

if [ "$1" == "build" ];then
    build
else
    help
fi







